package com.towker.frame.dao.report;


import org.springframework.stereotype.Repository;

import com.towker.core.db.BaseDao;
import com.towker.core.page.PageModel;
import com.towker.core.page.PageRequest;
import com.towker.frame.model.report.Warehouse;

@Repository
@SuppressWarnings("unchecked")
public class WarehouseDao extends BaseDao<Warehouse, Long> {

	@Override
	public Class getEntityClass()
	{
		return Warehouse.class;
	}
	
	/**
	 * 取得分页数据
	 * @param pageRequest
	 * @return
	 */
	public PageModel getPage(PageRequest pageRequest,String namespaceId)
	{
		String statementName = getIbatisMapperNamespace() + "."+namespaceId;
		return getPage(statementName, pageRequest);
	}

}
